class UpdateValleyersAddActivedAt < ActiveRecord::Migration
  def self.up
    add_column :valleyers, :actived_at, :dateTime
    Valleyer.all.each do |valleyer|
      valleyer.actived_at = valleyer.created_at
      valleyer.save!
    end if Rails.env != 'test'
  end

  def self.down
  end
end
